import purchasebatch from "@/assets/purchasebatch.svg"

/** 采购订单管理 */
export default [
  {
    path: "/purchase-order-management",
    redirect: "/purchase-order/index",
    meta: {
      title: "采购订单管理",
      icon: purchasebatch,
      activeIcon: purchasebatch,
      sort: 8
    },
    children: [
      {
        path: "/purchase-order/index",
        name: "PurchaseBatch",
        component: () => import("@/views/purchase-order/index.vue"),
        meta: {
          title: "采购订单列表",
          icon: "",
          permission: [
            {
              path: "insert",
              label: "新增"
            },
            {
              path: "update",
              label: "修改"
            },
            {
              path: "addTrain",
              label: "添加车次"
            },
          ]
        },
      },
      {
        path: "/purchase-order-insert/index",
        name: "PurchaseBatchInsert",
        component: () => import("@/views/purchase-order-insert/index.vue"),
        meta: {
          title: "添加采购订单",
          icon: "",
        },
      },
    ],
  },
];
